package com.acme.meihuayishu;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

public class Logo extends Activity{

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.logo);
		
		new Thread(r).start();
	}
	
	Runnable r=new Runnable(){
		@Override
		public void run()
		{
			try
			{
				Thread.sleep(2000);
			}
			catch(InterruptedException e)
			{
				Thread.currentThread().interrupt();
				e.printStackTrace();
			}
			
			forwardTo();
		}
		
		public void forwardTo()
		{
			Intent intent=new Intent(Logo.this,MainActivity.class);
			startActivity(intent);
			Logo.this.finish();
		}
	};
}
